package com.bestow.basic.service.impl;

import java.util.List;

import com.bestow.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.bestow.basic.mapper.HlsDocFileParaTableMapper;
import com.bestow.basic.domain.HlsDocFileParaTable;
import com.bestow.basic.service.IHlsDocFileParaTableService;

/**
 * 格参数集Service业务层处理
 *
 * @author liliu
 * @date 2022-10-05
 */
@Service
public class HlsDocFileParaTableServiceImpl extends ServiceImpl<HlsDocFileParaTableMapper, HlsDocFileParaTable> implements IHlsDocFileParaTableService {
    @Autowired
    private HlsDocFileParaTableMapper hlsDocFileParaTableMapper;

    /**
     * 查询格参数集
     *
     * @param paraTableId 格参数集主键
     * @return 格参数集
     */
    @Override
    public HlsDocFileParaTable selectHlsDocFileParaTableByParaTableId(Long paraTableId) {
        return hlsDocFileParaTableMapper.selectHlsDocFileParaTableByParaTableId(paraTableId);
    }

    /**
     * 查询格参数集列表
     *
     * @param hlsDocFileParaTable 格参数集
     * @return 格参数集
     */
    @Override
    public List<HlsDocFileParaTable> selectHlsDocFileParaTableList(HlsDocFileParaTable hlsDocFileParaTable) {
        return hlsDocFileParaTableMapper.selectHlsDocFileParaTableList(hlsDocFileParaTable);
    }

    /**
     * 新增格参数集
     *
     * @param hlsDocFileParaTable 格参数集
     * @return 结果
     */
    @Override
    public int insertHlsDocFileParaTable(HlsDocFileParaTable hlsDocFileParaTable) {
        hlsDocFileParaTable.setCreateTime(DateUtils.getNowDate());
        return hlsDocFileParaTableMapper.insertHlsDocFileParaTable(hlsDocFileParaTable);
    }

    /**
     * 修改格参数集
     *
     * @param hlsDocFileParaTable 格参数集
     * @return 结果
     */
    @Override
    public int updateHlsDocFileParaTable(HlsDocFileParaTable hlsDocFileParaTable) {
        hlsDocFileParaTable.setUpdateTime(DateUtils.getNowDate());
        return hlsDocFileParaTableMapper.updateHlsDocFileParaTable(hlsDocFileParaTable);
    }

    /**
     * 批量删除格参数集
     *
     * @param paraTableIds 需要删除的格参数集主键
     * @return 结果
     */
    @Override
    public int deleteHlsDocFileParaTableByParaTableIds(Long[] paraTableIds) {
        return hlsDocFileParaTableMapper.deleteHlsDocFileParaTableByParaTableIds(paraTableIds);
    }

    /**
     * 删除格参数集信息
     *
     * @param paraTableId 格参数集主键
     * @return 结果
     */
    @Override
    public int deleteHlsDocFileParaTableByParaTableId(Long paraTableId) {
        return hlsDocFileParaTableMapper.deleteHlsDocFileParaTableByParaTableId(paraTableId);
    }
}
